namespace KingerRobot.MexicoSailunMDC.Dao;
partial class Db : K8.EF.DbContext
{
    /// <summary>
    /// 记录 - 出库单-主表
    /// </summary>
    public DbSet<POWmsOutOrderMaster> WmsOutOrderMasters { get; set; }
}

/// <summary>
/// 记录 - 出库单-主表
/// 表[wms_out_order_master]
/// </summary>
[Table("wms_out_order_master")]
public class POWmsOutOrderMaster
{
    /// <summary>
    /// 主键，通过雪花算法生成
    /// 主键[wms_out_order_master.objid)]
    /// </summary>
    [Key]
    [Column("objid")]
    public long? Id { get; set; }
    /// <summary>
    /// 订单编号
    /// [wms_out_order_master.order_code)]
    /// </summary>
    [Column("order_code")]
    public string OrderCode { get; set; }
    /// <summary>
    /// 订单类型
    /// [wms_out_order_master.order_type)]
    /// </summary>
    [Column("order_type")]
    public int? OrderType { get; set; }
    /// <summary>
    /// 目标货位
    /// [wms_out_order_master.target_loc)]
    /// </summary>
    [Column("target_loc")]
    public long? TargetLoc { get; set; }
    /// <summary>
    /// 订单状态
    /// [wms_out_order_master.order_status)]
    /// </summary>
    [Column("order_status")]
    public int? OrderStatus { get; set; }
    /// <summary>
    /// 订单优先级
    /// [wms_out_order_master.order_priority)]
    /// </summary>
    [Column("order_priority")]
    public int? OrderPriority { get; set; }
    /// <summary>
    /// 结束方式
    /// [wms_out_order_master.finish_mode)]
    /// </summary>
    [Column("finish_mode")]
    public int? FinishMode { get; set; }
    /// <summary>
    /// 结束时间
    /// [wms_out_order_master.finish_time)]
    /// </summary>
    [Column("finish_time")]
    public DateTime? FinishTime { get; set; }
    /// <summary>
    /// 0：非直运；1：直运
    /// [wms_out_order_master.direct_delivery)]
    /// </summary>
    [Column("direct_delivery")]
    public int? DirectDelivery { get; set; }
    /// <summary>
    /// 直运扫描仪位置（提前设置从哪个扫描仪直运）
    /// [wms_out_order_master.direct_loc)]
    /// </summary>
    [Column("direct_loc")]
    public long? DirectLoc { get; set; }
    /// <summary>
    /// 创建时间
    /// [wms_out_order_master.create_time)]
    /// </summary>
    [Column("create_time")]
    public DateTime? CreateTime { get; set; }
    /// <summary>
    /// 更新时间
    /// [wms_out_order_master.update_time)]
    /// </summary>
    [Column("update_time")]
    public DateTime? UpdateTime { get; set; }
    /// <summary>
    /// 是否可用 0:不可用  1:在用
    /// [wms_out_order_master.use_flag)]
    /// </summary>
    [Column("use_flag")]
    public int? UseFlag { get; set; }
    /// <summary>
    /// 用户ID
    /// [wms_out_order_master.user_id)]
    /// </summary>
    [Column("user_id")]
    public long? UserId { get; set; }
    /// <summary>
    /// 用户姓名
    /// [wms_out_order_master.user_name)]
    /// </summary>
    [Column("user_name")]
    public string UserName { get; set; }
    /// <summary>
    /// [wms_out_order_master.remark_memo)]
    /// </summary>
    [Column("remark_memo")]
    public string RemarkMemo { get; set; }
    /// <summary>
    /// [wms_out_order_master.mes_order_no)]
    /// </summary>
    [Column("mes_order_no")]
    public string MesOrderNo { get; set; }
}
